fixed AGREEMENT command
accepting an empty AGREEMENT command line now
add disconnected event
add basic relog mechanism