Motor and thermal protections