Added optional Loop to Connection
Started to add support for Goodbye messages