remove set_timeout() return values and add close() return valuse
perfect the API documentation