deinit function closes the rpxd connection