Fix wipe of temp folder on close