If you unload him, and the immigration won't let him through and it ends up as nobody's responsibility, I suspect the authorities here might have something to say to you about neglect. Although you didn't intentionally do so, as captain, you became 'in loco parentis', and thus could be held personally responsible for anything that happened to the child.