make exit on error work