Fixed up the incorrect username/password error.
Properly close off socket input and output when errors occur.