Fixed pause/unpause behavior (and correct cleanup of all logsources)