send error after onload