Fixes bug on Python 3 because SystemExit does not have a message attribute.