prefixed string codec
increase written bytes
add Serializable to WriteException
check idle every 1s
remove session when closed by peer