Handle exceptions for each invocation of key assign action.