test fix. We don't guarantee safety in terminate. Changed test to shutdown.

fixes https://github.com/hazelcast/hazelcast/issues/3738