closing http client connections, removed unused throwables, some cleanups
rised up version