Organized imports and closing leaked resources