Fix connection close removeSubscriber logic bug.