Added logic to disconnect from esb on application exit

Signed-off-by: rpgmaker <olamide.bakre@gmail.com>