Fixed bug in exit handler

Constant non-string exit() arguments are not converted to a string
anymore.