Exit with a status code of 1 when an error occurs.