Some bug fixes: close process dialog in all background API tasks.