Fix traceback onDisable when not using logfile
Fix duplicate log entry