added support for client disconnect logic