fixed error handler issues, added compensation for chain reset time to delay time calculation