Emit signal when shutdown gets blocked by outstanding db jobs.
Show a progress dialog on shutdown, when waiting for db jobs. This is actually a bit fake, because the event-loop is blocked, but better than silently blocking shutdown.