dont even turn the power off.. then u will have to reset all your clocks and crap, your pc etc... just take the battery out... obviously if it has a battery, it is not connected to the mains. also, the reasn it is randomly beeping is that the battery is nearly dead, and it needs changing