Added gracefull shutdown from ctrl+c