Enhance the error message when IM file is missing or unreadable