Added error detection when creating a zip file (closes #3).