The Destruction of the Woden

M-5 detects the Woden, an unmanned freighter that is not part of the test, and attacks with real weapons, destroying it. Captain Kirk orders M-5 taken offline, but Dr. Daystrom continues to believe it is working correctly, and refuses.