exit with 1 if error