You had tape wrapped around the wire and it came off, Doesn't that tell you that maybe there is a better way to make a connection of two wires. one that is a little bit more secure, like aleast a wire nut then some tape. The preferred method is solder and heat shrink, but a crimp on connector is also good, much better option over just tape.