fix pom.xml & context shutdown