Inhibit user switching and session idle

As recording video from a webcam is undesirable when combined with
switching users, inhibit switching and session idling.

https://bugzilla.gnome.org/show_bug.cgi?id=694214
Stop the running action when an error occurs

https://bugzilla.gnome.org/show_bug.cgi?id=707386