Moved jmp_buf to thread struct. Still not sure where this should be.