Autoclose

Pull request on dev branch for https://github.com/inthepoche/poche/pull/290