Handle errors correctly when accept_stat ne SUCCESS