Add lost connection entry/exit handlers.