Don't access unmounted component methods

Fix #36