Propagate exit code of ncs and return better signal exit codes
Capture the exit code of ncs and propagate it so that it can be observed from outside of the container. Tests are added to verify this works both for the normal case as well as on errors.
Also return better exit codes for signals. See commit messages and #20 (closed) for more details on that.
Part of #20 (closed).
Edited by Kristian Larsson