Effects: add back in the exception catching -> return error code

Signed-off-by: David Scott <dave.scott@citrix.com>