Add hook methods for beforeStart, afterStart, beforeStop, etc.