Well, given that the Surfacebook utilizes computing power in the attached keyboard, maybe disconnecting it without properly checking processes could cause bad things to happen?
At least when it's on, it needs time to switch from the processors in the keyboard to those in the tablet.