Use exitErr instead of explicit error message and exitWith