Batch processing of records on submit, clean exiting, err handling on all cmds.