Fix bug that occurs if close/closeAll is called more than once
Merge pull request #3 from dylanparker/master

Fix bug that occurs if close/closeAll is called more than once