Wait for DynamoDB Local process to stop when terminating