public void shutdown(){
//shutdown the running threads
getSender().stopRunning();
SandeshaThread thread = getInvoker();
if(thread != null) thread.stopRunning();
thread = getPollingManager();
if(thread != null) thread.stopRunning();
//removing the reference to the configuration context