Add catch for ContextTerminated in remote_driver