Remove fileStream.close() as it's not required