Avoids crashing when the disk is full