fix for stack overload due to multiple 'offline' events