Print out limits when opening/closing proxy sockets.

Should help debug issue #680