I'm not sure I follow, but I think you're seeing that Racket installs a SIGINT handler to convert Ctl-C into a Racket exn:break exception. On macOS, you could remove that signal handler with
But it's not about windowWillClose: in that case; the default Ctl-C treatment exits immediately without calling object methods. An immediate exit on Ctl-C also seems to happen when I run "main.m", so I may be missing something about your setup.
Your drawing code has (in-range (* 2 pi) (/ (* 2 pi) n)) where you meant (in-range 0 (* 2 pi) (/ (* 2 pi) n)). Also, you'll need to specify #:type _NSPoint for each argument to strokeLineFromPoint:toPoint:.