Fixed a bug with closing requests
Merge branch 'master' into django17