use EXIT_SUCCESS and EXIT_FAILURE for exit status; close #1142