First versions of exception handling