Modify removal workflow to not remove items until the dialog is closed

Following @dangoor 's suggestion, this modifies the removal workflow in Extension Manager so that extensions aren't actually removed until the user closes the dialog, so that if they cancel quitting, Brackets isn't in a bad state.