Fix connection reset bug - adds Connection: close header
Merge pull request #616 from ainsej/fix-reset-connection

Fix connection reset bug - adds Connection: close header
Stopped redirecting after session creation