Improved the error logging in the launcher.