catching execution exceptions