Improved user environment error handling