The self-energy of a confined massive quark