Relese connections, requests refactoring