Connect the ground wire from the AC connection, I wouldn't bother with the ground from the 5V circuit. Since the idea of connecting a ground to the chassis is to reduce shocks from high voltage wiring, then there is no need to connect a ground from 5V circuits. There also might be feedback that can cause strange behaviour.