customProc returns exit code and has better logs