correct use of EXIT_SUCCESS and EXIT_FAILURE, fixes #43