Handling Profile Execution Errors

To conserve resources, the switch stores only the last execution log for the profile that resulted in an error.