Attempt to not try to launch webbrowser in non-gui environment
fixed a cleanup line