Move error message ahead to beggining of exception handler