Close connection properly in /health

Fixes gh-181