Add a user-configurable option to specify an amount of diskspace which should remain free.
When less space is free then doenloading should stop to prevent malfunction of other applications.