cleanup online player logic