Implemented strategy pattern for exitAfterHandling methods