Better handling of the server banner

...also some extra error handling.