I couldn't connect to the ROV after resuming the thread

The terminal output shows that it’s resuming as expected, so it’s the commands to the vehicle that aren’t working as you expect. Most likely that’s due to a failsafe causing the vehicle to disarm automatically, so when you resume the thread and start sending more movement commands it ignores them because the vehicle is no longer armed.