If your electrical tape is leaving glue on surfaces, you need better tape. The best is Scotch Super 33+ tape, good to better than 150degF. It stretches well for sealing and doesn't leave residue in room temperature applications. Plus it comes in a plastic container which is useful afterwards for storing stuff.