Executes a block's OnStop method.
This function is typically used within the pipe execution environment to perform block stop actions. However, this function call also be used when unit-testing blocks.