The plaintiff may dismiss his attachment, but defendant shall have a jury impanelled forthwith to assess the damages sustained by reason of suing out the attachment.