Handle SIGINT and add a stop method to agentchecks to be called when sigint or sigterm is catched