improved debug output for invalid fd case in Loader