Destroy selenium before live server threads.

Ensure that selenium quits before the live server thread to
prevent occasional hangs when killing the live server.