Fix #1657 - Explicitly close the requests session

Also Fixes #1326