stop callbacks on closed connections