Fix test cases. Added sleep before Quit
Fix formats
Fix Formats and Send error to main goroutine on Disconnect