close RPC connection on any error, the connections seem to get out of sync and can't be recovered