Make it an error instead of a crash when dav_connect fails.

Fixes #1591
owncloudcmd:  Fix an error during update phase would not terminate

the QApplication::quit()  would be run before the exec() and would
be a noop,   and then exec would just wait forever.