added option to disable onClan logout