Close handler after write
0.3.1