Keeping them on the sheet too long after baking can cause them to get hard or stick to the sheet. Cookies are done when they are firmly set and lightly browned. When you touch them lightly with your finger, almost no imprint will remain.