Handle sigint signals for gracefull shutdowns