add a `@Predestroy` method in the services to close the opened simulations
add a
@Predestroymethod in the services to close the opened simulations