not closing buffer on finally