A valid legal excuse can remove the demand to attend congregation.

Congregational Prayer: Status, Minimum, and Basic Formation