More exception handling...

... and Application.Exit instead of Environment.Exit.