close pin before start