cancel the following actions if the fragment has been detached.