clean up after batch jobs