Fixed handling of unchecked exception.