I would take taxi in this case. After 5 a.m the taxi is not extremely expensive. Taking the bus means you have to spend extra time to get back to Pudong Airport. Also the morning peck hour traffic is another thing you may want to concern.
Subway may be another choice. You can take No.2 subway from Pudong Airport all the way to Hongqiao Airport which takes aout one and half to two hours.