close RPC connection on PM2 update