Fixes issue where script would exit on a non-critical error