change background process to wait till ogr2ogr is finished.