Shell/4213

[endlessm/eos-shell#4213]
@rshuler I disagree about the use of `g_debug`. It doesn't add any overhead to have those `g_debug` calls, which might be useful for development/debug.
I agree with you about `g_error` exiting with the message though.