Clean up socket/session auth stuff