Connection closed event handled

Multiple connections are handled properly to maintain persistent
connection