Vicarious liability might not attach under English law for the Captain's negligence if the Captian was "on a frolic of his own". There is a difference between doing what one was not within one's function and doing badly what was.
Contract law differs again.