Added BadStatusLine exception handling.