Sometimes, attempting to run lambdas will return this type of error:
```
{"Type": "Server", "message": "Error executing Lambda function arn:aws:lambda:ap-northeast-1:000000000000:function:service-stage-functionName: An error occurred (ResourceAlreadyExistsException) when calling the CreateLogGroup operation: The specified log group already exists Traceback (most recent call last):\n 
File \"/opt/code/localstack/localstack/services/awslambda/lambda_api.py\", line 338, in run_lambda\n 
event, context=context, version=version, asynchronous=asynchronous)\n 
File \"/opt/code/localstack/localstack/services/awslambda/lambda_executors.py\", line 81, in execute\n 
return do_execute()\n File \"/opt/code/localstack/localstack/services/awslambda/lambda_executors.py\", line 70, in do_execute\n self._store_logs(func_details, log_output, invocation_time)\n 
File \"/opt/code/localstack/localstack/services/awslambda/lambda_executors.py\", line 105, in _store_logs\n logs_client.create_log_group(logGroupName=log_group_name)\n 
File \"/opt/code/localstack/.venv/lib/python3.6/site-packages/botocore/client.py\", line 357, in _api_call\n 
return self._make_api_call(operation_name, kwargs)\n 
File \"/opt/code/localstack/.venv/lib/python3.6/site-packages/botocore/client.py\", line 661, in _make_api_call\n 
raise error_class(parsed_response, operation_name)\n
botocore.errorfactory.ResourceAlreadyExistsException: An error occurred (ResourceAlreadyExistsException) when calling the CreateLogGroup operation: The specified log group already exists\n", "__type": "InternalFailure"}
```
I am not yet sure if there are any particular settings that cause it, since it does not occur for certain deployments.

Will update if I can figure out the exact configuration.
super(LambdaExecutorReuseContainers, self).__init__()
        
        self.docker_container_lock = threading.RLock()
        
        
        
        
        self.next_port = 0
        self.max_port = LAMBDA_SERVER_UNIQUE_PORTS
        self.port_offset = LAMBDA_SERVER_PORT_OFFSET
    def prepare_execution(self, func_arn, env_vars, runtime, command, handler, lambda_cwd):
        
        has_been_invoked_before = func_arn in self.function_invoke_times
        
        with self.docker_container_lock:
            env_vars['_LAMBDA_SERVER_PORT'] = str(self.next_port + self.port_offset)
            self.next_port = (self.next_port + 1) % self.max_port
        
        LOG.debug('Priming docker container with runtime "%s" and arn "%s".', runtime, func_arn)
        container_info = self.prime_docker_container(runtime, func_arn, env_vars.items(), lambda_cwd)
        
        
        
        exec_env_vars = ' '.join(['-e {}="${}"'.format(k, k) for (k, v) in env_vars.items()])
        if not command:
            command = '%s %s' % (container_info.entry_point, handler)
        
        copy_command = ''
        docker_cmd = self._docker_cmd()
        event_file = os.path.join(lambda_cwd, LAMBDA_EVENT_FILE)