add onBlockLoadFailed handler