Core/connection: Fix error on disconnect/quit. Remove "quitting" flag as unnecessary. Will continue message queue and quit after the QUIT message is processed.

Signed-off-by: Martin Stone <martin@d7415.co.uk>
(cherry picked from commit c7c74ffe1b09ba4ef49e31b81343bb167fa3c116)