Added cancellation of rescan asynctask in bluetooth and wifi preferrnce
dialog