cancelling future before terminating session