Correcting bug 'KeyboardLogger.stop() freezing'