got timeout, now how to close properly?