Run go to metadata asynchronously

Fix #768.
Maybe use / introduce some active pattern(s) here? Type checking looks a bit ugly.