Check qte state before sending messages to avoid crash on signals sent during cleanup.