When may a pilot cancel the IFR flight plan prior to completing the flight?