Extra stuff for deleting files after close.
add assertion for issue #119