Change the return result to CancelledError when cancel a future