only exit on error