added better control on exit status