[feature] added closing connection if timeout passed