close pin on error