exit if failled to get the lock