Hot starting issues

My guess is bad connection causing heat. That looks scary. Hope your Battery is disconnected. Hopefully you can cut them back and solder them correctly. There was a thread where someone found a plug that worked out well for a replacement.