add exception handler at keyblob method