Implemented aborting mechanism.