I guess that I (after learning about the timeline of events) assumed that Team 9 was one 'team' of the killer robots sent to the island. Instead of having the command to kill the Crown Bearer, they could've possibly been sent to destroy the core of the island. Obviously, it was too strong for them, and they were absolutely destroyed. When Curly restarted the robot, it was most likely remembering how dangerous the core was, and tried to warn them to get out. The door may have been shut by Misery or the Doctor, because they could've known that Curly and Quote were in there, to try and make sure that they were killed. The core might've also somehow psychically shut to make sure that they were killed, too. I guess that your guess is as good as mine, I didn't write the story.