Allow the cookies to cool for 10 minutes before piping the buttercream on top. Do not frost the cookies right out of the oven.