It came from deep inside, so either the driver, the diode, the negative terminal of the battery. I get what you mean about loose connections, but that usually doesn't result in smoke, right? I don't have my DMM on me (or any other 18650's) so I can't test the battery, but I can tell you it was...