Brake by applying dc to ac motor