adding try block around getting user name, if running on vm this will cause errors