Handle exception in get_request_line

I was getting the following exception continously on Windows 8, which was raised from socket.py:
error: [Errno 10054] An existing connection was forcibly closed by the remote host

This help up the execution of my tests. Handling it here fixes things.