add lib's log
add log in FD.close()
add context methods