Consider that the fuel injectors may be leaking at shut down due to fuel deposits and need to be cleaned. A couple of cans of fuel injector cleaner may cure that. There may even be a carbon build up on the back of a valve that prevents it from closing fully resulting in the tapping that you hear. That's the optimistic diagnosis.
The pessimistic diagnosis is that the valve guide seals are worn and are allowing oil to be sucked into the intake manifold. One valve guide may be loose in the head causing the tapping that you hear.
If you idle the engine when hot for say 3 to 5 minutes and then rev it up (in place) does it produce a blue cloud of oil smoke from the exhaust? If so the valve guide seals are probably worn out and ought to be replaced. An experienced M-B mechanic can do that job without removing the engine's cylinder head. However, a loose valve guide may require the head to be removed.