Catch exception from submit job errors and added test