cleanup exception status code handling