fix SocketProxy shutdown behavior