FIX: removed handlers when closing qt window