Disposing before executing callbacks