Close the applicationContext