Fix deposit finalization edge case.

refs #5980

When finalization fails because of failed connection, was putting deposit
in broken state. Fixed.