aims to fix issue 296 for properly wrapping exception timeout form socket.py