change the way how to stop the driver when an error occurred