Exit on postload

Hello,

there is a way to fail the task on PostLoad or PreLoad?

$workflow.ActivityFailure() is working only in preexecuting and I need to block the execution and terminate the workflow with a message.

Thanks.