connection cleanup and other http work