handle plan deletion in Plan
unused imports removed
localized
handle deletion of plan; more robust checking for taskid in onPostExecute