Fixed zip overwriting bug. Added graceful exit handling.