the four hastily hatched a plot to relieve the ship of her gold stores , but when the deed was underway a deck officer walked in on the theft and they had no choice but to soundly slice him to pieces .