Fix return code for CommandManager forked process