clean up after logging