Added Unix exit eror code when an exception is triggered