Fixed issue in main script where fatal errors/excp were not displayed