Added exit code on error

Added a non-zero exit code on error when processing just a single module. This makes scripting with this moosh command more robust.