This is an error, you should return with a non-zero exit status (no return statement returns with null which is casted to integer 0). Add return 1