exit script on any bad error codes