added a fix when trying to exit, if selenium canot close exit anyway