exit if chunk size is zero