Never delete the "added newline" twice

Even when a hook or a backend method raises an error.

Possibly related to #145.
Don't call post-completion methods and hook in continue-failed case

Possibly related to #145.