bugfix
_closing flag not checked correctly