Nicer error handling in Connection.getUserData()