customize the hook to start/stop components

Change-Id: I86a02c976f9447fc4ddaeb05d18ae2bc63f57f25