add heartbeat field to result messages
fixed process to shutdown properly upon AMQ connection errors