Bugfix regarding the deserialization of the stockList

OptionalData Exception should be gone (reason was, that file and
streams where not closed properly)