Fix - close source when close mainLoop
QT can close viewer. Only one viewer at time.