add error raising when an error occurs while playing file