Put 'em in a class, why not
Cleanup, rename pty_exception to exception