Made on-demand finalization async.

refs #6232

Added logic so when finalization only is requested, it's performed
asynchronously. Added a field to the deposit to indicate when the
last attempt at finalization failed.