use separate file event poll thread, fixed start callback timing, delete remove marked file entry from states, added more debug logs