wrong wait handle in error function