Active Inference For Adaptive And Fault Tolerant Control