Don't close connection on auth failure
Make sure the user is logged in before executing commands