Not Muslim, but by my understanding, you do your best under the circumstances, and God gets it. Also, if you're in the middle of an emergency (say, a battle, or rush hour, or a burning building) He'll take a raincheck.
Islam is still wretched in comparison to modern systems of morality, and is still used to prop up autocrats and tyrants, but the pillars are accommodating to circumstances.