Added `should_close`
Merge pull request #761 from bvssvni/master

Added `should_close`