[fixed] the workaround to get the exit code.

this is stupid…