Electromagnetic brakes maintenance