DC2B-148: Modify groovy script process exit codes.

1) return normally: 0
2) return exceptionally: 1
3) no record created: 2