Move code out of frame, proper thread termination