[fix] close filehandler