Make sure to detect abnormal exits before looking at exit code
Tests for abnormal exit detection