Streamline error handling.

When we fail in backup, restore or verify we close the FD connection
if we opened that and return from the function. The cleanup function
for backup, restore and verify will cleanup the SD connection if that
is opened. This also means we don't get the spurious message when
during a backup something goes wrong in the protocol handling and
we get the famous "No Job status returned from FD".