Try pausing after the killall, to give time for the player to catch the SIGINT and actually exit before the next steps..

??