Exit on error the intended way.