Cooperation under Imperfect Monitoring and External Threat