as he closed the distance behind the spanish ship , a bar and chain shot fired from the crow sailed past its intended target and barely missed the front mast of the wench before bouncing across the deck and over the side rail .