RPC::Server::Framework: Fixed race condition caused by plugin cleanups