Move sleep in ASO transfers monitoring loop to beginning of loop; add a call to get_transfer_statuses before starting the loop; increase sleep time from 200 to 300 secs. Enclose all document retrieval from couch in try/except.