Add error handling for coffee files