RPC::Server::Framework#clean_up: updated checks preventing double-calls