The produced gas in an abandoned mine can escape through a pipe into the atmosphere. For this purpose an existing pipe in the shaft remains in the shaft during filling. This pipe connects the underground opening with the atmosphere.