AE: Wait until we are in a safe state before further deinitializing the sink (care for deadlocks)