added new disconnect handler