Fix close spring context.