Cleanup of logging