Clean up. Remove dead code, unnecessary break statements in switch, go fmt, and implement better output for MsgCancel.