fix for BUS holding after onClose