improved error handling. no gaps in lastBlockSeenHash