[BUGFIX] Debug exception handler: set exit code on CLI