Leonardo USB won't stay connected

FYI, this seems to occur when I have a variable too large on the stack.

In this case 4k/4096 bytes...