[bug] Unsubscribe requests are not sent when RSU exits - v2

reworked according previous comments.

when RSU exits, send first the requests to unsubscribe
for device contexts notification, and delay the g_main_loop exit
for 1 second to give them a chance to be really sent.

Fix issue: https://github.com/01org/renderer-service-upnp/issues/92

Signed-off-by: Christophe Guiraud <christophe.guiraud@intel.com>