handle error when opening invalid cover file