Bug fix---forgot return error code in process.wait()

I forgot to include the error return code in the successful path.