No windows in release mode
Clean up initialization code
Catch weather errors and exit