added cleanup if driver crashed.