switch from sigusr1 to sigterm for Windows compatibility