Cancels calls in flight, then closes the service if it is AutoCloseable. Every later call returns a canceled future.