Added usage of EXIT_FAILURE and EXIT_SUCCESS