fix a bug that driver always quit regardless of failure