Bugfix: check if already disposed