added a topology which will stop when a certain method is called or a SIGTERM/SIGINT...