close connection after shut down servlet context.