Animation of the fabric stops and "freezes" earlier than I need to
Problem solved! :) looks like it is just a bug. Apparently it happened not only to me. To solve it you need to enter and then exit  the Edit Mode and Bake again.