Multi-Task Learning of Active Fault-Tolerant Controller for Leg Failures in Quadruped robots