Close reg key handle