handle ConnectionFailure exception more gracefully
handle ConnectionFailure exception more gracefully in writebfids.py

what happened

Ticket: #number
Acked-by:
Target: trunk
Require-book: no
Require-notes: no