Fix invalid handle error spam