i used a relay logic to give a back up power to my microcontroller when the main supply is removed. Now it is moving smoothly when the main supply is gone, as it provides the back up, but when the supply comes back the relay is vibrating instead of cutting off. what is the reason for this ? how can i solve it ?