Caught bug, fixed bug. Server becomes inactive before isOnline() check.