Support exit code in procexit