shutdown driver on exit if launched in process