fix #2;support close statusCode and reasonText