Update Issue 40

Backport to master

Improve the clean up to avoid having the shutdown thread blocked
(cherry picked from commit eca15d702faa0c548790886b721a30f8467e70f2)

Conflicts:
	core/src/main/java/org/mobicents/ha/javax/sip/LoadBalancerHeartBeatingServiceImpl.java