fix to cleanup locks left behind after unproper bot disconnection