stop selenium gracefully on clean shutdown