bugfix: exitcode has range upto 255, so restartcode 999 changed to 255