Added a sync before closing the session.
Added a code to rename custom properties (so only qpid.subject) with the
'JMS_' prefix.