Sounds like several parts. The sleeper cut off switch shouldn't be doing anything with the cab. If so, it is wired to the primary line. Your brakes have electronic modules that likely didn't reset causing that first brake issue, and then worked after another five minute reset.
That is assuming...