fixed win32 segfault when press ctrl-c