trap exti in level
close_write in connection to force EOF