Add driver shutdown on quit.
Fix driver shutdown on quit.