Revert "RPC: stops the release_pipe() funtion from being called twice"