Some commands were not returning the correct exit codes.

Some commands were not returning the correct exit codes. Besides the ones I fixed in this PR, there's just GenerateEntitiesDoctrineCommand left for which I couldn't understand if and when the error exit code should be returned.