After Bolshevik invasion of Azerbaijan, Shahsuvarov was appointed Deputy Education Commissar of Azerbaijan SSR. In 1940, he was arrested with false accusation and sent to Krasnodar repression camp. He was released in 1943 and returned to Baku where he worked as the Professor of Russian language at Baku Medical University from 1946 to 1958 and Azerbaijan State Oil Academy, was a Dean of Russian Language Department at Baku State University. He died on August 11, 1958 in Baku.