terminating qthread gracefully on qdialog reject(),time.sleep(0.5)