bug fix: the connection object is now deleted from the subscriber list when the connection is closed