Feature/#352 abort publishing

Implements Abort publishing #352