optimize shutdown