imporoved error detection and handling in host
The host is now better at detecting errors - detects some errors it was previously missing, and has eliminated some false positives. Also adds more context to some of the errors that it does detect, which will make debugging easier.