Added overloadable terminateRequested method