Allowing aborting chain

The aim of this change is to allow aborting chain.

The change is to read the output of the custom callback and if it's a certain value, e.g. `false`, the rest of the chain is abandoned.