fingolfin is right. Dr. Wilhelm Dege, meteorogist, surrendered with his crew to a civilian Norwegian captain. He was there for about a year:
Unternehmen Haudegen:
The Kriegsmarine had used Spitzbergen as weather forecast base since 1941. This was secret to the Allies until after the war. The last mission, Haudegen, was originally planned for August 1944. But U 354, which was patrolling before the transport ship, a fish trawler, met a British carrier force of two British carriers en route to bomb the battleship Tirpitz. U 354 could damage HMS Nabob so badly that she was a total loss and sink the frigate HMS Bickerton but was sunk herself. So the transport vessel had to return to base. The British bombing run on Tirpitz did not take place after the loss of one of the carriers. The second attempt however in September was successful, although they had to pass a huge allied convoy.
Dr. Dege and his men got the news about the collapse per radio broadcasts. However finally in August they revealed their existence and asked to be brought back. A Norwegian seal hunter came on September 4th 1945. He rejected to take them home until finally Dr. Dege had to surrender to him. So this capitulation was the last one of a German unit in ww2.
U 530 and U 977 tried to escape to Argentina. There the boats and the crews were given to the US after diplomatic pressure. But this happened in August 1945.
Adler