clean up temporary data directory at shutdown