Fix broken test. Remove duplicate closig process.