Handle socket manager exception in socket class.