storage: FileStorage: fixes not properly closed files

This should fix #16