Diderik Christian Blicher, Frederikshavn