close a spring context.