Improved error handling to avoid debug problems.
2.6.1. Network depth bugfix.