Ensure rake tasks returns appropriately when action fails (refs #10)