SyntaxFix
Write A Post
Hire A Developer
Questions
It seems that the idiomatic way to do this is to provide a close() method (or similar), and call it explicitely.
close()