Error handling for afplay