reset putty state for each call