[travis] Fix travis
[fix] Close file on error