Fix #325: Keep snapshot data when a file is deleted

As explained in #325 there snapshot data is lost, if the original file is deleted. 
The proposed commits are changing the way implicit snapshot creation is handled when a file is removed from the OpenFileTable. In addition it is ensured, that a file is closed on deletion and pending snapshots are created.