fix: porting singnal handling (win, etc.)