If an error happens, exit with a non-zero status