now gracefully existing also on sigterm