common: Print command & return code if trap

If we enter a trap, let's print the faulty command and its return code.
Very useful for debugging