Improve the launch script

The launch script will show errors in a gui instead of just printing to the console.