Fix bug with Gaze.prototype.close

Fixes #10