The driver's hand got trapped during the operation, which involved two separate portions of the Caledonian Sleeper service.