handles exeptions on disconnect events for host and guest