Get rid of non-required close statements

As @krisztianfekete mentioned, close() is called upon exiting from the
context.
Merge pull request #2 from matelakat/fix-close

Get rid of non-required close statements