rake task batch size and a rescue block

updated default rake task batch size and a rescue block