add a conn_state called CONN_WAIT_CLOSE for timer close
rename request state enum
graceful close conn if error
add some comment
add GPL lisence