Apple Support said:Accidently bumping the A/C adaptor could disconnect power and shutdown the computer. Any information that was not saved on your computer would be lost.
If it's bad to leave the battery in then why does Apple tell their customers to leave it in?