implementing the Dispose pattern for the ProcessWrapper