Added logging in resp __del__ calls, other optimizations.