Pass main thread context to interrupt handler on Windows

Capture the context of the main thread when receiving a Ctrl+C signal
on Windows and pass it to the interrupt handler.