Transitor Goes Boom

Silicon is Weak. If the motor is larger than a walnut... you should always use a T0-220 case device. (The kind with a heatsink tab. )