Fixes bug #4 (closed). The return code of the doxec script now reflects success or failure of the execution.