Improved the code used to close the eve launcher