Allow ping on closed connection. (Fixes #147)