Croatian man rescued from boat with seconds to spare