Allow closing mysql pooled connection. Closes #475