Suggest changing this to AIM_DIE, which will mean this function never returns an error.