Make sure to clean up userid and suserid when connection is lost.