fix bug with exit status code call in system module