Mujir | making sure threadlocal is cleaned up.
1. In case closing sql connection fails.