Added a fix for socket closure issues, from Kalinash
Missed an update to a .gitignore file