fixed issue where logout message not sent before disconnect
added data dictionary, supporting invalid tag validation