Add registration callback to close the PIN dialog properly.