fix ctrl-c exit and falling behind