(a)if he deserts from his mechanically propelled vessel, he shall be guilty of the offence of desertion and be liable to forfeit all or any of the property he leaves on board of the vessel and of wages he has then earned and also to imprisonment which may extend to three months;