code and sig into exit callback