nicira: Added try block to decorator.