socket close on timeout