Instead, he became Assessor in the Ministries of Agriculture and Commerce under the Danish absolute monarchy and filled various other posts, such as being the first director of a new Royal Aquavit Distillery, which was founded on his own initiative. Rafn died in Copenhagen in 1808, only 39 years old.