Cleanup after loglevel changes