I can't recognize, that any stream isn't closing before exit the program.