Added FileStream disposing

Fixed bug with not disposed FileStream when exception is thrown. It was not possible to get access to file beeing saved after exception (for example to delete file). Now it's fixed.