Don’t throw an exception if already closed.
Merge pull request #207 from Bombe/dont-throw-if-closed

Don’t throw an exception if already closed.